import lldb

from . import ark, es2panda, std
from .common import error_handler
from .debugger import Debugger


@error_handler
def register(debugger: lldb.SBDebugger, internal_dict: dict) -> None:
    d = Debugger(debugger)
    with d.category_registrator('es2panda') as r:
        es2panda.register(r)
        ark.register(r)
    with d.category_registrator('cpp_fix') as r:
        std.register(r)
    d.command('settings set escape-non-printables false')
